package com.gk.study.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Email;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("b_guest")
public class Guest {
    public int id;
    public String name;
    public String sex;
    public String phone;
    @TableField("enter_time")
    public String enterTime;
    public int hType;
    public String num;
    String password;
    String address;
    String description;
    @Email
    String email;
    String avatar;
    @TableField(exist = false)
    public MultipartFile avatarFile;
}
